#!/bin/bash

# 使用gnome-terminal

#设备搜索
gnome-terminal --geometry=80x20+800+50 --title "设备搜索服务器" -- bash -c "cd ~/24072/smart-agriculture-cloud-hub/设备搜索/linux服务器; make; sudo ./test; exec bash"

#数据上报
sleep 1
gnome-terminal --geometry=80x20+1532+50 --title "数据上报进程" -- bash -c "cd /home/hq/24072/smart-agriculture-cloud-hub/数据上报;make;exec bash"

sleep 1
#32server
gnome-terminal --geometry=80x20+0+470 --title "STM32 服务器" -- bash -c "cd ~/24072/smart-agriculture-cloud-hub/STM32/32Server; make;sudo ./a.out 192.168.43.125 9000; exec bash"

sleep 1
#modbus
gnome-terminal --geometry=80x20+800+470 --title "Modbus 服务器" -- bash -c "cd ~/24072/smart-agriculture-cloud-hub//webserver/Modbus; make;sudo ./test; exec bash"

sleep 1
#webserver
gnome-terminal --geometry=80x20+1532+470 --title "WEB 服务器" -- bash -c "cd ~/24072/smart-agriculture-cloud-hub/webserver/thttpd-master; make; sudo ./thttpd.out; exec bash"

sleep 1
#阿里云
gnome-terminal --geometry=80x20+0+890 --title  "阿里云" -- bash -c "cd ~/24072/smart-agriculture-cloud-hub/阿里云/LinkSDK; make; sudo ./output/data-model-basic-demo; exec bash"

